package cn.spike.rockcc.dto;

import cn.spike.rockcc.annotation.Phone;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author:spike
 * @create:2023-03-08 20:34
 */
@Data
public class RegisterDto {
    @NotNull(message = "手机号不能为空")
    @Phone(message = "手机号码格式错误")
    private String mobile;

    @NotNull(message = "密码不能为空")
    private String password;

    private String imageCode;

    @NotNull(message = "手机验证码不能为空")
    private String smsCode;

    private Integer regChannel;

    private String invitationCode;
}
